﻿using System;

namespace NCS.IConnect.Cloud.Core
{
    /// <summary>
    /// Helper class for primary key management.
    /// </summary>
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1052:StaticHolderTypesShouldBeSealed")]
    public class ObjectKey
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ObjectKey"/> class.
        /// </summary>
        private ObjectKey()
        {
        }

        /// <summary>
        /// Generates a new key.
        /// </summary>
        /// <returns>Guid.NewGuid()</returns>
        public static object NewKey()
        {
            return Guid.NewGuid();
        }
    }
}
